package com.jc.service.permission;

import java.util.Set;

import org.springframework.stereotype.Service;

import com.jc.cds.mapper.CustomPermissionMapper;
import com.jc.cds.model.CustomPermission;
import com.jc.ds.base.service.BaseServiceImpl;
import com.jc.ds.model.Permission;

@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission, CustomPermission, Long> implements PermissionService {

	@Override
	public CustomPermissionMapper getCustomMapper() {
		return (CustomPermissionMapper)this.getBaseCustomMapper();
	}
	
	

	public Set<String> getUserPermissionListByUserId(Long userId){
		return this.getCustomMapper().getPermissionByUserId(userId);
	}


}
